<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/easyui-header.jsp"/>
    <script type="text/javascript" src="/static/js/views/trace.js"></script>
</head>
<body>

<%--主界面--%>
<table id="trace_datagrid"></table>

<%--主界面toolbar--%>
<div id="trace_datagrid_toolbar" style="height: 30px">
    <div style="float: left;padding-left: 20px;">
        <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reloadTrace">刷新</a>
        <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="detailsTrace">查看详情</a>
        <a class="easyui-linkbutton" iconCls="icon-examRegist" plain="true" data-cmd="auditTrace">审核</a>
    </div>
</div>

<%--查看详情--%>
<div id="trace_detailed_dialog" class="easyui-dialog" style="width:825px;height:300px;top: 100px"
     data-options="iconCls:'icon-search',modal:true ,title:'跟进详情',closed:true,buttons:'#trace_detailed_dialog_buttons'">
    <form id="trace_detailed_form">
        <table style="padding-top: 3px">
            <tr>
                <td style="padding: 5px">客户名:</td>
                <td style="padding: 5px">
                    <input class="easyui-textbox" readonly="true" name="client.name"/>
                </td>
                <td style="padding: 5px">跟进时间:</td>
                <td style="padding: 5px">
                    <input class="easyui-datebox" readonly="true" name="traceDate"/>
                </td>
                <td style="padding: 5px">跟进人:</td>
                <td style="padding: 5px">
                    <input class="easyui-textbox" readonly="true" name="traceEmployee.username"/>
                </td>
            </tr>
            <tr>
                <td style="padding: 5px">交流问题:</td>
                <td style="padding: 5px">
                    <input class="easyui-textbox" readonly="true" name="traceMatter" style="width:173px;height: 100px"/>
                </td>
                <td style="padding: 5px">结果摘要:</td>
                <td style="padding: 5px">
                    <input class="easyui-textbox" readonly="true" name="synopsis" style="width:173px;height: 100px"/>
                </td>
                <td style="padding: 5px">跟进自评:</td>
                <td style="padding: 5px">
                    <input class="easyui-textbox" readonly="true" name="traceAim" style="width:173px;height: 100px"/>
                </td>
            </tr>
        </table>
    </form>
</div>

<%--审核查看详情buttons--%>
<div id="trace_detailed_dialog_buttons" style="height: 30px">
    <div style="float: left;padding-left: 20px;">
        <a class="easyui-linkbutton" iconCls="icon-examRegist" plain="true" data-cmd="auditTrace">审核</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="detailed_close">取消</a>
    </div>
</div>

<%--审核弹框--%>
<div id="audit_dialog" class="easyui-dialog" style="width:300px;height:350px;top: 100px"
     data-options="iconCls:'icon-search',modal:true ,title:'审核跟进数据',closed:true,buttons:'#audit_dialog_buttons'">
    <form id="audit_form">
        <table style="padding-top: 3px; align-items: center">
            <tr>
                <td style="padding: 5px;padding-left: 30px">跟进打分:</td>
            </tr>
            <tr>
                <td style="padding: 5px;padding-left: 30px">
                    <input id="audit_level" class="easyui-combobox" name="assessLevel"
                           data-options="required:true,valueField:'id',textField:'name',
                           url:'/systemDictionary/getItem?parentId=2'"/>
                </td>
            </tr>
            <tr>
                <td style="padding: 5px;padding-left: 30px">跟进评价:</td>
            </tr>
            <tr>
                <td style="padding: 5px;padding-left: 30px">
                    <input id="auditAssess" multiline="true" class="easyui-textbox" name="auditAssess"
                           data-options="required:true,prompt:'请给本次跟进简单评价'"
                           style="width:225px;height: 100px"/>
                </td>
            </tr>
        </table>
    </form>
</div>

<%--审核框按钮--%>
<div id="audit_dialog_buttons" style="height: 30px">
    <div style="float: left;padding-left: 20px;">
        <a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="audit_ok">审核</a>
        <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="audit_cancel">取消</a>
    </div>
</div>

</body>
</html>
